package com.yihaomen.mybatis.inter;
import java.util.List;

import com.yihaomen.mybatis.model.Article;
import com.yihaomen.mybatis.model.User;

public interface IUserOperation {

	//@Select("select * from user where id = #{id}")
	public User selectUserByID(int id);
	
	public void addUser(User user);
	
	public void updateUser(User user);
	
	public void deleteUser(int id);
	
	public void deleteName(String userName);
	
	public List<User> selectUsers(String userName);  
	
	public List<Article> getUserArticles(int id);
	
}
